//
// Decompiled by Jadx - 388ms
//
package fg;

import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
import me.plusne.common.Json.JsonHelp;
import r.g;

public final class a extends RecyclerView.h<a> {
    public final ArrayList a = new ArrayList();

    public final int getItemCount() {
        return this.a.size();
    }

    public final long getItemId(int i) {
        return ((JsonHelp.DataBean) this.a.get(i)).getId();
    }

    public final void onBindViewHolder(RecyclerView.ae aeVar, int i) {
        a aVar = (a) aeVar;
        ArrayList arrayList = this.a;
        JsonHelp.DataBean dataBean = (JsonHelp.DataBean) arrayList.get(i);
        boolean z = true;
        if (i + 1 != arrayList.size()) {
            z = false;
        }
        if (z) {
            aVar.c.setVisibility(View.GONE);
        } else {
            aVar.getClass();
        }
        String key = dataBean.getKey();
        TextView textView = aVar.a;
        textView.setText(g.w(textView, key));
        String value = dataBean.getValue();
        TextView textView2 = aVar.b;
        textView2.setText(g.w(textView2, value));
    }

    public final RecyclerView.ae onCreateViewHolder(ViewGroup viewGroup, int i) {
        return new a(LayoutInflater.from(viewGroup.getContext()).inflate(-2113142729, viewGroup, false));
    }
}
